package com.york.jobmew.circle.server.entity.constants;

public enum ReplyTypeEnum {

    REPLY(1, "评论"),

    COMMENT(2, "回复");

    public final int code;

    public final String desc;

    ReplyTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static ReplyTypeEnum getByCode(int codeVal) {
        for (ReplyTypeEnum resultCodeEnum : ReplyTypeEnum.values()) {
            if (resultCodeEnum.code == codeVal) {
                return resultCodeEnum;
            }
        }
        return null;
    }

}
